import 'babel-polyfill'
import Vue from "vue";
import i18n from './i18n'
import en from 'element-ui/lib/locale/lang/en'
import zh from 'element-ui/lib/locale/lang/zh-CN'
import locale from 'element-ui/lib/locale'
// // 设置语言
// locale.use(en)

Vue.prototype.$locale = locale
Vue.prototype.$en = en
Vue.prototype.$zh = zh
Vue.prototype.$_i18n = i18n
// Vue.locale('zh-cn', zhLocale)
// Vue.locale('en', enLocale)
require('es6-promise').polyfill()
require('es6-promise/auto')
import App from "./App.vue";
import router from "./router";
import store from "./store";
import  qs from 'qs'

// 样式重置
import "@/assets/css/reset.css";
// 引入elementUI
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

import baseUrl from "@/utils/api.js";
// 引入封装请求
import http from "@/utils/request";
Vue.prototype.$http = http;
Vue.prototype.$baseUrl = baseUrl;
Vue.prototype.$qs = qs
Vue.use(ElementUI);
Vue.config.productionTip = false;
document.title = "cool_star_admin";
new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount("#app");